﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using FinApp.DataProviders.Enumerations;
using FinApp.DataProviders.EventArguments.Base;

namespace FinApp.DataProviders.EventArguments {

    public delegate void CryptoKeyCompletedEventHandler(object sender, ChryptoKeyEventArgs e);

    public class ChryptoKeyEventArgs : ServerEventArgsBase {

        #region Members
        private string commercePasswordKey;
        private string commerceSaltKey;
        #endregion

        #region Constructors
        public ChryptoKeyEventArgs(ProviderResponseEnumeration loginStatus, string message, string commercePasswordKey, string commerceSaltKey)
            : base(loginStatus, message) {
            this.commercePasswordKey = commercePasswordKey;
            this.commerceSaltKey = commerceSaltKey;
        }
        #endregion

        #region Properties
        /// <summary>
        /// Obtiene la clave de password del establecimiento
        /// </summary>
        public string CommercePasswordKey {
            get { return commercePasswordKey; }
        }
        /// <summary>
        /// Obtiene la clave de sal del establecimiento
        /// </summary>
        public string CommerceSaltKey {
            get { return commerceSaltKey; }
        }
        #endregion

    }
}
